<template>
  <div>
    <el-table :data="cutObj.records" style="width: 100%;height:200px;">
      <el-table-column prop="date" label="日期" width=""/>
      <el-table-column prop="info" label="内容"  width=""/>
    </el-table>
    <el-pagination
        v-model:page-size="cutObj.size"
        background
        :total="cutObj.total"
        @current-change="findByItem"
    />
    <el-row>
      <el-col :span="5">起始日期:<input type="text " v-model="findObj.startDate" style="width: 80px"></el-col>
      <el-col :span="5">结束日期:<input type="text " v-model="findObj.endDate" style="width: 80px"></el-col>
      <el-col :span="7">
        <el-button type="primary" @click="findByItem(1)">搜素</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import axios from "axios";

export default {
  data() {
    return {
      cutObj:{},
      findObj:{}
    }
  },
  methods:{
    findByItem(pageNO) {
      this.findObj.pageNO = pageNO
      axios.get("/project/log/findByItem", {params: this.findObj}).then(resp => {
        console.log(resp.data)
        this.cutObj = resp.data
      })
    },
  },
created() {
  this.findByItem(1)
}
}
</script>

<style scoped>

</style>